﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ReconSite.Master" AutoEventWireup="true" CodeBehind="InvoiceCreditNote.aspx.cs" Inherits="ReconUI.InvoiceCreditNote" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<asp:Content ID="TitleContent" ContentPlaceHolderID="TitleHolder" runat="server">  
    <title>Invoice Credit Notes</title>        
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="BodyHolder" runat="server">
    <div class="formDiv" style="width:72%">
    <h2 class="formTitle">Invoice/Credit Notes</h2>
    <h1 class="formError" style="text-align:right;font-size:smaller;color:#CC2900;">Fields marked with * are mandatory</h1>
	<%--<span id="mandatoryMessage" class="formError">Fields marked with * are mandatory</span>--%>
    <table cellspacing="1" cellpadding="1" border="0" width = "100%">
    <tr>
            <td  align="right" >
                Invoice/Credit
            </td>
            <td>
       <asp:RadioButtonList ID="rbOption" runat="server" RepeatDirection="Horizontal" 
                    RepeatLayout="Flow" AutoPostBack="True" 
                    onselectedindexchanged="rbOption_SelectedIndexChanged">
                    <asp:ListItem Value="Invoice" Selected="True">Invoice</asp:ListItem>
                    <asp:ListItem Value="Credit">Credit</asp:ListItem>
                    </asp:RadioButtonList>
             </td>
    </tr>
<asp:Panel ID="pnlStatement" runat="server" Visible ="false">
                
        <tr>
            <td  align="right" style="width:18%">
                Customer ID<span class="required">*</span>
            </td>
            <td>
                <asp:TextBox ID="txtCustomerId" runat="server" MaxLength="10"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="reqCustomerId" runat="server" 
                    ErrorMessage="Customer ID is mandatory" CssClass="formError"
                    ControlToValidate="txtCustomerId"  SetFocusOnError="True"></asp:RequiredFieldValidator>                    
            </td>
            <td  align="right">
                Bank ID<span class="required">*</span>
            </td>
            <td >
                <asp:TextBox ID="txtBankId" runat="server" MaxLength="10"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="reqBankId" runat="server" 
                    ErrorMessage="Bank ID is mandatory" CssClass="formError"
                    ControlToValidate="txtBankId"  SetFocusOnError="True"></asp:RequiredFieldValidator>
                
            </td>
        </tr>
        <%--<tr>
            <td  align="right">
                Bank ID<span class="required">*</span>
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtBankId" runat="server" MaxLength="10"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="reqBankId" runat="server" 
                    ErrorMessage="Bank ID is mandatory" CssClass="formError"
                    ControlToValidate="txtBankId"  SetFocusOnError="True"></asp:RequiredFieldValidator>
            </td>
        </tr>--%>
        <tr>
            <td  align="right" style="width:18%; padding-bottom:12px">
                Statement Date<span class="required">*</span>
            </td>
            
            <td>
                <input id="txtStatementDt" size="20" style="width: 125px" type="text" 
                    runat="server" enableviewstate="false"  readonly="readonly" />
                                        <asp:Button ID="Button1" runat="server" Text="..." UseSubmitBehavior="False" CausesValidation="False"
                                            OnClick="Button1_Click1" />
                                            <asp:RequiredFieldValidator ID="reqStatementDt" 
                    runat="server" ErrorMessage="Statement Date is mandatory" CssClass="formError"
                    ControlToValidate="txtStatementDt"  SetFocusOnError="True"></asp:RequiredFieldValidator>
               
                               
            </td>
            <td  align="right" style="padding-bottom:12px">
                Posting Date<span class="required">*</span>
            </td>
            <td >
                <input id="txtPostingDt" size="20" style="width: 125px" type="text" 
                    runat="server" enableviewstate="false"  readonly="readonly" />
                                        <asp:Button ID="Button2" runat="server" Text="..." 
                    UseSubmitBehavior="False" CausesValidation="False" onclick="Button2_Click"/>
                    <asp:RequiredFieldValidator ID="reqPostingDt" runat="server" 
                    ErrorMessage="Posting Date is mandatory" CssClass="formError"
                    ControlToValidate="txtPostingDt"  SetFocusOnError="True"></asp:RequiredFieldValidator>
               
             
              
            </td>
        </tr>
       <%-- <tr>
            <td  align="right">
                Posting Date<span class="required">*</span>
            </td>
            <td colspan="3">
                <input id="txtPostingDt" size="20" style="width: 125px" type="text" 
                    runat="server" enableviewstate="false"  readonly="readonly" />
                                        <asp:Button ID="Button2" runat="server" Text="..." 
                    UseSubmitBehavior="False" CausesValidation="False" onclick="Button2_Click"/>
                    <asp:RequiredFieldValidator ID="reqPostingDt" runat="server" 
                    ErrorMessage="Posting Date is mandatory" CssClass="formError"
                    ControlToValidate="txtPostingDt"  SetFocusOnError="True"></asp:RequiredFieldValidator>
               
             
              
            </td>
        </tr>--%>
        <tr>
            <td  align="right" style="width:18%">
                Value Date<span class="required">*</span>
            </td>
            <td colspan="3">
                <input id="txtValueDt" size="20" style="width: 125px" type="text" 
                    runat="server" enableviewstate="false"  readonly="readonly" />
                                        <asp:Button ID="Button3" runat="server" Text="..." 
                    UseSubmitBehavior="False" CausesValidation="False" onclick="Button3_Click"/>
             <asp:RequiredFieldValidator ID="reqValueDt" runat="server" 
                    ErrorMessage="Value Date is mandatory" CssClass="formError"
                    ControlToValidate="txtValueDt"  SetFocusOnError="True"></asp:RequiredFieldValidator>
              
            </td>
        </tr>
        <tr>
            <td  align="right" style="width:18%">
                Transaction Type<span class="required">*</span>
            </td>
            <td colspan="3">

               <asp:TextBox ID="txtTransactipnType" runat="server" MaxLength="1" ></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="reqTransactipnType" runat="server" 
                    ErrorMessage="Transactipn Type is mandatory" CssClass="formError"
                    ControlToValidate="txtTransactipnType" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>  
                 &nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator1" 
                    runat="server" ErrorMessage="Invalid Tran Type" CssClass="formError"
                    ControlToValidate="txtTransactipnType" SetFocusOnError="True" 
                    ValidationExpression="[I-Si-s]"></asp:RegularExpressionValidator>   
            </td>            
        </tr>
        <tr>
            <td  align="right" style="width:18%">
                Naration1<span class="required">*</span>
            </td>
            <td >

               <asp:TextBox ID="txtNaration1" runat="server" MaxLength="50" ></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="reqNaration1" runat="server" 
                    ErrorMessage="Naration1 is mandatory" CssClass="formError"
                    ControlToValidate="txtNaration1" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>  
                
            </td>  
            <td  align="right">
                Naration2
            </td>
              <td>
                 <asp:TextBox ID="txtNaration2" runat="server" MaxLength="50" ></asp:TextBox>              
            </td>         
        </tr>
         <%--<tr>
            <td  align="right">
                Naration2
            </td>
            <td colspan="3">
                 <asp:TextBox ID="txtNaration2" runat="server" MaxLength="50" ></asp:TextBox>              
            </td>            
        </tr>--%>
        <tr>
            <td  align="right" style="width:18%">
                Naration3
            </td>
            <td >
                 <asp:TextBox ID="txtNaration3" runat="server" MaxLength="50" ></asp:TextBox>              
            </td> 
              <td  align="right">
                Naration4
            </td>
            <td >
                 <asp:TextBox ID="txtNaration4" runat="server" MaxLength="50" ></asp:TextBox>              
            </td>            
        </tr>
       <%-- <tr>
            <td  align="right">
                Naration4
            </td>
            <td colspan="3">
                 <asp:TextBox ID="txtNaration4" runat="server" MaxLength="50" ></asp:TextBox>              
            </td>            
        </tr>--%>
         <tr>
            <td  align="right" style="width:18%; padding-bottom:12px">
                Amount<span class="required">*</span>
            </td>
            <td >
                 <asp:TextBox ID="txtAmount" runat="server" MaxLength="15" ></asp:TextBox>  
                 <asp:RequiredFieldValidator ID="reqAmount" runat="server" 
                     ErrorMessage="Amount is mandatory" CssClass="formError"
                    ControlToValidate="txtAmount" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>    
                &nbsp;<asp:RegularExpressionValidator ID="regAmount" runat="server" 
                     ErrorMessage="Invalid Amount" CssClass="formError"
                    ControlToValidate="txtAmount" SetFocusOnError="True" 
                    ValidationExpression="^[0-9]{0,}$"></asp:RegularExpressionValidator>         
            </td>  
            <td align="right" style="padding-bottom:12px">
                Ref/Cheque#<span class="required">*</span>
            </td>
            <td >
                 <asp:TextBox ID="txtRefNoChqNo" runat="server" MaxLength="50" ></asp:TextBox>   
                 <asp:RequiredFieldValidator ID="reqRefNoChqNo" runat="server" 
                     ErrorMessage="Reference No/Cheque No is mandatory" CssClass="formError"
                    ControlToValidate="txtRefNoChqNo" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>             
            </td>                  
        </tr>
        
        <%--<tr>
            <td  align="right">
                Ref #/Cheque # <span class="required">*</span>
            </td>
            <td colspan="3">
                 <asp:TextBox ID="txtRefNoChqNo" runat="server" MaxLength="50" ></asp:TextBox>   
                 <asp:RequiredFieldValidator ID="reqRefNoChqNo" runat="server" 
                     ErrorMessage="Reference No/Cheque No is mandatory" CssClass="formError"
                    ControlToValidate="txtRefNoChqNo" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>             
            </td>            
        </tr>--%>
        <tr>
            <td  align="right" style="width:18%; padding-bottom:12px">
               Reconciled Amount<span class="required">*</span>
            </td>
            <td>
                 <asp:TextBox ID="txtReconciledAmount" runat="server" MaxLength="15" ></asp:TextBox>   
                    
                    <asp:RequiredFieldValidator ID="reqReconciledAmount" runat="server" 
                     ErrorMessage="Raconcile Amount is mandatory" CssClass="formError"
                    ControlToValidate="txtReconciledAmount" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>  
                &nbsp;<asp:RegularExpressionValidator ID="regReconciledAmount" runat="server" 
                     ErrorMessage="Invalid Amount" CssClass="formError"
                    ControlToValidate="txtReconciledAmount" SetFocusOnError="True" 
                    ValidationExpression="^[0-9]{0,}$"></asp:RegularExpressionValidator>   
                         
            </td>   
            <td  align="right" style="width:18%; padding-bottom:12px" >
               Statement Status<span class="required">*</span>
            </td>
            <td>
                 <asp:TextBox ID="txtStatementStatus" runat="server" MaxLength="1" ></asp:TextBox>   
                    <asp:RequiredFieldValidator ID="reqStatementStatus" runat="server" 
                     ErrorMessage="Statement Status is mandatory" CssClass="formError"
                    ControlToValidate="txtStatementStatus" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>  
                &nbsp;<asp:RegularExpressionValidator ID="regStatementStatus" runat="server" 
                     ErrorMessage="Invalid Status" CssClass="formError"
                    ControlToValidate="txtStatementStatus" SetFocusOnError="True" 
                    ValidationExpression="^[a-zA-Z]+$"></asp:RegularExpressionValidator>   
                         
            </td>                     
        </tr>
      <%--  <tr>
            <td  align="right">
               Statement Status<span class="required">*</span>
            </td>
            <td colspan="3">
                 <asp:TextBox ID="txtStatementStatus" runat="server" MaxLength="1" ></asp:TextBox>   
                    &nbsp;<asp:RequiredFieldValidator ID="reqStatementStatus" runat="server" 
                     ErrorMessage="Statement Status is mandatory" CssClass="formError"
                    ControlToValidate="txtStatementStatus" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>  
                &nbsp;<asp:RegularExpressionValidator ID="regStatementStatus" runat="server" 
                     ErrorMessage="Invalid Status" CssClass="formError"
                    ControlToValidate="txtStatementStatus" SetFocusOnError="True" 
                    ValidationExpression="^[a-zA-Z]+$"></asp:RegularExpressionValidator>   
                         
            </td>            
        </tr>--%>
        <tr>
            <td  align="right" style="width:18%">
               Is Partial?
            </td>
            <td colspan="3">
                
                <asp:CheckBox ID="chkIsPartial" runat="server" Checked="False" />
               
                
            </td>

        </tr>
       
        <tr>
            <td  align="right">
                &nbsp;
            </td>
            <td colspan="3">
                <asp:Button ID="btnSubmit" runat="server" Text="Submit" onclick="btnSubmit_Click"/>&nbsp;
                <asp:Button ID="btnCancel" runat="server" Text="Reset"  CausesValidation="False" onclick="btnCancel_Click" />
            </td>
        </tr>
</asp:Panel>

<asp:Panel ID="pnlInvoice" runat ="server" Visible ="true">
<tr>
            <td  align="right" style="width:18%">
                Remitter ID<span class="required">*</span>
            </td>
            <td>
                <asp:TextBox ID="txtRemitterId" runat="server" MaxLength="10"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="reqRemitterId" runat="server" 
                    ErrorMessage="Remitter ID is mandatory" CssClass="formError"
                    ControlToValidate="txtRemitterId"  SetFocusOnError="True"></asp:RequiredFieldValidator>                    
            </td>
            <td  align="right" style="width:18%">
                Customer ID<span class="required">*</span>
            </td>
            <td >
               <asp:TextBox ID="txtICustomerId" runat="server" MaxLength="10"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="reqICustomerId" runat="server" 
                    ErrorMessage="Customer ID is mandatory" CssClass="formError"
                    ControlToValidate="txtICustomerId"  SetFocusOnError="True"></asp:RequiredFieldValidator> 
                
            </td>
        </tr>
        <tr>
            <td  align="right" style="width:18%">
                Invoice No.<span class="required">*</span>
            </td>
            <td >
                <asp:TextBox ID="txtInvoiceNo" runat="server" MaxLength="20"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="reqInvoiceNo" runat="server" 
                    ErrorMessage="Invoice No is mandatory" CssClass="formError"
                    ControlToValidate="txtInvoiceNo"  SetFocusOnError="True"></asp:RequiredFieldValidator>
            </td>
             <td  align="right" style="width:18%">
                Invoice Date<span class="required">*</span>
            </td>
            <td >
                <input id="txtInvoiceDate" size="20" style="width: 125px" type="text" 
                    runat="server" enableviewstate="false"  readonly="readonly" />
                                        <asp:Button ID="Button5" runat="server" Text="..." 
                    UseSubmitBehavior="False" CausesValidation="False" onclick="Button5_Click"/>
                    <asp:RequiredFieldValidator ID="reqInvoiceDate" runat="server" 
                    ErrorMessage="Invoice Date is mandatory" CssClass="formError"
                    ControlToValidate="txtInvoiceDate"  SetFocusOnError="True"></asp:RequiredFieldValidator>
            </td>
        </tr>
       
        <tr>
            <td  align="right" style="width:18%">
                Currency<span class="required">*</span>
            </td>
            <td colspan="3">

               <asp:TextBox ID="txtCurrency" runat="server" MaxLength="3" ></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="reqCurrency" runat="server" 
                    ErrorMessage="Currency is mandatory" CssClass="formError"
                    ControlToValidate="txtCurrency" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>   
            </td>            
        </tr>        
         <tr>
            <td  align="right" style="width:18%; padding-bottom:12px">
                Amount<span class="required">*</span>
            </td>
            <td >
                 <asp:TextBox ID="txtIAmount" runat="server" MaxLength="15" ></asp:TextBox>  
                 <asp:RequiredFieldValidator ID="reqIAmount" runat="server" 
                     ErrorMessage="Amount is mandatory" CssClass="formError"
                    ControlToValidate="txtIAmount" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>    
                &nbsp;<asp:RegularExpressionValidator ID="regIAmount" runat="server" 
                     ErrorMessage="Invalid Amount" CssClass="formError"
                    ControlToValidate="txtIAmount" SetFocusOnError="True" 
                    ValidationExpression="^[0-9]{0,}$"></asp:RegularExpressionValidator>         
            </td>  
            <td align="right" style="width:18%; padding-bottom:12px">
                Ref/Cheque#<span class="required">*</span>
            </td>
            <td >
                 <asp:TextBox ID="txtIRefNoChqNo" runat="server" MaxLength="20" ></asp:TextBox>   
                 <asp:RequiredFieldValidator ID="reqIRefNoChqNo" runat="server" 
                     ErrorMessage="Reference No/Cheque No is mandatory" CssClass="formError"
                    ControlToValidate="txtIRefNoChqNo" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>             
            </td>                  
        </tr>      
        <tr>
            <td  align="right" style="width:18%; padding-bottom:12px">
               Service Tax<span class="required">*</span>
            </td>
            <td>
                 <asp:TextBox ID="txtServiceTax" runat="server" MaxLength="10" ></asp:TextBox>   
                    
                    <asp:RequiredFieldValidator ID="reqServiceTax" runat="server" 
                     ErrorMessage="Service Tax is mandatory" CssClass="formError"
                    ControlToValidate="txtServiceTax" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>  
                &nbsp;<asp:RegularExpressionValidator ID="regServiceTax" runat="server" 
                     ErrorMessage="Invalid Service Tax" CssClass="formError"
                    ControlToValidate="txtServiceTax" SetFocusOnError="True" 
                    ValidationExpression="^[0-9]{0,}$"></asp:RegularExpressionValidator>   
                         
            </td> 
            <td  align="right" style="width:18%; padding-bottom:12px">
              VAT<span class="required">*</span>
            </td>
            <td>
                 <asp:TextBox ID="txtVAT" runat="server" MaxLength="10" ></asp:TextBox>   
                    
                    <asp:RequiredFieldValidator ID="reqVAT" runat="server" 
                     ErrorMessage="VAT is mandatory" CssClass="formError"
                    ControlToValidate="txtVAT" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>  
                &nbsp;<asp:RegularExpressionValidator ID="regVAT" runat="server" 
                     ErrorMessage="Invalid VAT" CssClass="formError"
                    ControlToValidate="txtVAT" SetFocusOnError="True" 
                    ValidationExpression="^[0-9]{0,}$"></asp:RegularExpressionValidator>   
                         
            </td>                            
        </tr>

         <tr>
            <td  align="right" style="width:18%; padding-bottom:12px">
               Cess<span class="required">*</span>
            </td>
            <td>
                 <asp:TextBox ID="txtCess" runat="server" MaxLength="10" ></asp:TextBox>   
                    
                    <asp:RequiredFieldValidator ID="reqCess" runat="server" 
                     ErrorMessage="Cess is mandatory" CssClass="formError"
                    ControlToValidate="txtCess" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>  
                &nbsp;<asp:RegularExpressionValidator ID="regCess" runat="server" 
                     ErrorMessage="Invalid Cess" CssClass="formError"
                    ControlToValidate="txtCess" SetFocusOnError="True" 
                    ValidationExpression="^[0-9]{0,}$"></asp:RegularExpressionValidator>   
                         
            </td> 
            <td  align="right" style="width:18%; padding-bottom:12px">
              Sales Tax<span class="required">*</span>
            </td>
            <td>
                 <asp:TextBox ID="txtSalesTax" runat="server" MaxLength="10" ></asp:TextBox>   
                    
                    <asp:RequiredFieldValidator ID="reqSalesTax" runat="server" 
                     ErrorMessage="Sales Tax is mandatory" CssClass="formError"
                    ControlToValidate="txtSalesTax" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>  
                &nbsp;<asp:RegularExpressionValidator ID="regSalesTax" runat="server" 
                     ErrorMessage="Invalid Sales Tax" CssClass="formError"
                    ControlToValidate="txtSalesTax" SetFocusOnError="True" 
                    ValidationExpression="^[0-9]{0,}$"></asp:RegularExpressionValidator>   
                         
            </td>                            
        </tr>

         <tr>
            <td  align="right" style="width:18%; padding-bottom:12px">
               Tax1<span class="required">*</span>
            </td>
            <td>
                 <asp:TextBox ID="txtTax1" runat="server" MaxLength="10" ></asp:TextBox>   
                    
                    <asp:RequiredFieldValidator ID="reqTax1" runat="server" 
                     ErrorMessage="Tax1 is mandatory" CssClass="formError"
                    ControlToValidate="txtTax1" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>  
                &nbsp;<asp:RegularExpressionValidator ID="regTax1" runat="server" 
                     ErrorMessage="Invalid Tax1" CssClass="formError"
                    ControlToValidate="txtTax1" SetFocusOnError="True" 
                    ValidationExpression="^[0-9]{0,}$"></asp:RegularExpressionValidator>   
                         
            </td> 
            <td  align="right" style="width:18%; padding-bottom:12px">
              Tax2<span class="required">*</span>
            </td>
            <td>
                 <asp:TextBox ID="txtTax2" runat="server" MaxLength="10" ></asp:TextBox>   
                    
                    <asp:RequiredFieldValidator ID="reqTax2" runat="server" 
                     ErrorMessage="Tax2 is mandatory" CssClass="formError"
                    ControlToValidate="txtTax2" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>  
                &nbsp;<asp:RegularExpressionValidator ID="regTax2" runat="server" 
                     ErrorMessage="Invalid Tax2" CssClass="formError"
                    ControlToValidate="txtTax2" SetFocusOnError="True" 
                    ValidationExpression="^[0-9]{0,}$"></asp:RegularExpressionValidator>   
                         
            </td>                            
        </tr>
        <tr>
            <td  align="right" style="width:18%; padding-bottom:12px">
               Tax3<span class="required">*</span>
            </td>
            <td>
                 <asp:TextBox ID="txtTax3" runat="server" MaxLength="10" ></asp:TextBox>   
                    
                    <asp:RequiredFieldValidator ID="reqTax3" runat="server" 
                     ErrorMessage="Tax3 is mandatory" CssClass="formError"
                    ControlToValidate="txtTax3" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>  
                &nbsp;<asp:RegularExpressionValidator ID="regTax3" runat="server" 
                     ErrorMessage="Invalid Tax3" CssClass="formError"
                    ControlToValidate="txtTax3" SetFocusOnError="True" 
                    ValidationExpression="^[0-9]{0,}$"></asp:RegularExpressionValidator>   
                         
            </td> 
            <td  align="right" style="width:18%; padding-bottom:12px">
              Discount(%)<span class="required">*</span>
            </td>
            <td>
                 <asp:TextBox ID="txtDiscount" runat="server" MaxLength="10" ></asp:TextBox>   
                    
                    <asp:RequiredFieldValidator ID="reqDiscount" runat="server" 
                     ErrorMessage="Discount is mandatory" CssClass="formError"
                    ControlToValidate="txtDiscount" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>  
                &nbsp;<asp:RegularExpressionValidator ID="regDiscount" runat="server" 
                     ErrorMessage="Invalid Discount" CssClass="formError"
                    ControlToValidate="txtDiscount" SetFocusOnError="True" 
                    ValidationExpression="^[0-9]{0,}$"></asp:RegularExpressionValidator>   
                         
            </td>                            
        </tr>
      <%--  <tr>
            <td  align="right">
               Statement Status<span class="required">*</span>
            </td>
            <td colspan="3">
                 <asp:TextBox ID="txtStatementStatus" runat="server" MaxLength="1" ></asp:TextBox>   
                    &nbsp;<asp:RequiredFieldValidator ID="reqStatementStatus" runat="server" 
                     ErrorMessage="Statement Status is mandatory" CssClass="formError"
                    ControlToValidate="txtStatementStatus" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>  
                &nbsp;<asp:RegularExpressionValidator ID="regStatementStatus" runat="server" 
                     ErrorMessage="Invalid Status" CssClass="formError"
                    ControlToValidate="txtStatementStatus" SetFocusOnError="True" 
                    ValidationExpression="^[a-zA-Z]+$"></asp:RegularExpressionValidator>   
                         
            </td>            
        </tr>--%>
        <tr>
            <td  align="right">
               Is Partial?
            </td>
            <td colspan="3">
                
                <asp:CheckBox ID="chkIsPartialInvoice" runat="server" Checked="False" />
               
                
            </td>

        </tr>
       
        <tr>
            <td  align="right">
                &nbsp;
            </td>
            <td colspan="3">
                <asp:Button ID="btnInvoice" runat="server" Text="Submit" onclick="btnInvoice_Click"/>&nbsp;
                <asp:Button ID="btnInvoiceCancel" runat="server" Text="Reset" onclick="btnInvoiceCancel_Click" CausesValidation="False"  />
            </td>
        </tr>
</asp:Panel>
           </table>
           
     <asp:UpdatePanel ID="upUnmatchedLists" runat="server" UpdateMode="Conditional">
        <ContentTemplate>    
                <div id="pnlMatchList" runat="server" class="pnlMatchList">    
                    <span style="azimuth: center;">
                        <div id="Div1" class="formDiv" runat ="server"  >
                            <center>
                                <asp:Label ID="lblMessage" runat="server"    CssClass="lable"/>
                            </center>
                        </div>
                    </span>
                    <div class="formDiv" style="width: 30%;">
                         <center>
                            <asp:Button ID="btnok" runat="server" Text="OK" onclick="btnok_Click" CausesValidation="False"  />
                          </center>
                    </div>
                </div>
            <div style="display: none">
                <asp:Button ID="btnManualPopup" runat="server" />
            </div>
            <ajax:ModalPopupExtender ID="btnClickPopup" runat="server" PopupControlID="pnlMatchList"
                TargetControlID="btnManualPopup" BackgroundCssClass="modalBackground" RepositionMode="RepositionOnWindowScroll" OkControlID = "btnok">
            </ajax:ModalPopupExtender>   
        </ContentTemplate>        
    </asp:UpdatePanel>
                  </div>





</asp:Content>
